import { DEFAULT_LAYOUT } from '../base';
import type { AppRouteRecordRaw } from '../types';

const AiAssistant: AppRouteRecordRaw = {
  path: '/',
  name: 'Ai',
  component: DEFAULT_LAYOUT,
  redirect: '/aiAssistant',
  meta: {
    locale: 'AI助手',
    roles: ['*'],
    icon: 'icon-robot',
    hideChildrenMenu: true,
    requiresAuth: true,
    order: 8
  },
  children: [
    {
      path: 'aiAssistant',
      name: 'AiAssistant',
      component: () => import('@/views/aiAssistant/index.vue'),
      meta: {
        activeMenu: 'AiAssistant'
      }
    }
  ]
};

export default AiAssistant;
